package com.zsj.mode.responsibilityChain;

/**
 * @Author zsj
 * @Version 1.0
 * @Date 2023/11/9 9:01
 * @Description 学院
 */
public class Department extends Handler {
    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() <= 5000) {
            System.out.println("学院处理"+request.getPrice());
        } else if (header != null) {
            header.processRequest(request);
        }
    }
}
